package cn.lbwfree.day3_26;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @date:2020年3月26日
 * @author:lbwfree
 * number:BASIC-20  数的读法
 */
public class ReadNum {
	public static void main(String[] args) {
		Scanner inScanner = new Scanner(System.in);
		
		String numString=inScanner.next();
		char[] Cnum = numString.toCharArray();
		
		int[] num = new int[Cnum.length];
		for (int i = 0; i < num.length; i++) {
			num[i] = Cnum[num.length-i-1]-'0';
		}
		String[] t1 = {"ling ", "yi ", "er ", "san ", "si ", "wu ", "liu ", "qi ", "ba ", "jiu "};
		String[] t2 = {"","wan ","yi "};
		String[] t3 = {"","shi ","bai ", "qian "};
		
		int j=-1;
		String pString="";
		for (int i = 0; i < num.length; i++) {
			if(i%4==0)
			{
				j++;
				pString = t2[j]+pString;
			}
			if(i%4==0)
			{
				if(num[i]==0)
				{
					continue;
				}
				pString = t1[num[i]]+t2[i%4]+pString;
			}
			if(i%4==1)
			{
				if(i==num.length-1)
				{
					if(num[i]==1)
					{
						pString= t3[i%4]+pString;
						break;
					}
				}
				if(num[i]==0)
				{
					if(num[i-1]!=0)
					{
						pString = t1[0]+pString;
					}
					continue;
				}
				pString= t1[num[i]]+t3[i%4]+pString;
			}
			if(i%4==2)
			{
				
				if(num[i]==0)
				{
					if(num[i-1]!=0)
					{
						pString = t1[0]+pString;
					}
					continue;
				}
				pString= t1[num[i]]+t3[i%4]+pString;
			}
			if(i%4==3)
			{
				
				if(num[i]==0)
				{
					if(num[i-1]!=0)
					{
						pString = t1[0]+pString;
					}
					continue;
				}
				pString= t1[num[i]]+t3[i%4]+pString;
			}
			
		}
		System.out.println(pString);
	}
}
